/*
 * @Autor: ZN
 * @LastEditors: ZN
 * @Date: 2023-05-10 15:54:44
 * @LastEditTime: 2023-05-10 16:18:29
 * @Description: 
 */
import { queryDailyData, addDaily, deleteDaily } from "@/api/daily"

//获取列表
export const queryDailyDatas = async () => {
  const res = await queryDailyData()
  if (res.code == 200) {
    return res.data
  }
}
//发布随笔
export const addDailyDatas = async (data) => {
  const res = await addDaily(data)
  if (res.code == 200) {
    return res.data
  }
}

export const deleteDailys = async (data) => {
  const res = await deleteDaily(data)
  if (res.code == 200) {
    return res.data
  }
}
